package com.nuumoblie.bluetoothtools.ble.db.dao;

import androidx.room.Dao;
import androidx.room.Delete;
import androidx.room.Insert;
import androidx.room.Query;

import com.nuumoblie.bluetoothtools.ble.db.entity.BleServiceEntity;

import java.util.List;

@Dao
public interface BleServiceDao {

    @Insert
    void insert(BleServiceEntity entity);

    @Delete
    void delete(BleServiceEntity entity);

    @Query("select * from ble_service where product_id = :id order by _id asc")
    List<BleServiceEntity> getServices(int id);

}
